<template>
  <div class="login-wrapper">
    <div class="login-wrapper-inner">
      <div class="logo">
        <img src="../../assets/icon/logo.png" alt />
      </div>
      <div class="wrapper-title-text">差点上北大</div>
      <form class="form-submit-cont">
        <div class="form-group-wrapper">
          <div class="group-input-item">
            <div class="Icon">
              <i class="user-icon"></i>
            </div>
            <div class="user-input">
              <input type="text" name="username" placeholder="请输入账号" v-model="account" />
            </div>
          </div>
          <div class="group-input-item">
            <div class="Icon">
              <i class="pw-icon"></i>
            </div>
            <div class="user-input">
              <input type="password" name="password" placeholder="请输入密码" v-model="password" />
            </div>
          </div>
        </div>
      </form>
      <div class="form-group-btn">
        <button class="login-btn" @click="login">登录</button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "pay",
  data() {
    return {
      account: null,
      password: null
    };
  },
  methods: {
    login() {
      if (this.account == "admin" && this.password == 123456) {
        this.$router.push("/home");
      } else {
        alert("请输入正确的用户名或密码！");
      }
    }
  }
};
</script>
      

<style scoped>
@charset "UTF-8";
body,
input {
  width: 100%;
}
button,
input {
  border: none;
  outline: 0;
}
button,
html *,
img,
input {
  outline: 0;
}
html * {
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-size: 100.01%;
  color: #000;
  background: #fff;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body,
html {
  -webkit-overflow-scrolling: touch;
}
a,
body,
button,
dd,
div,
dl,
dt,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
li,
p,
td,
textarea,
th,
ul {
  margin: 0;
  padding: 0;
}
body {
  font-size: 0.3rem;
  color: #666;
  font-family: "PingFang SC", -apple-system, "Helvetica Neue",
    "Hiragino Sans GB", Helvetica, "Microsoft YaHei", Arial;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #eee;
}
li,
ol,
ul {
  list-style: none;
}
input {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  line-height: 1.5;
}
input::-webkit-input-placeholder {
  color: #aaa;
}
input:focus::-webkit-input-placeholder {
  color: #c3c3c3;
}
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="date"],
select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}
a {
  color: #8c8c8c;
  text-decoration: none !important;
}
img {
  border: 0;
}
::-webkit-scrollbar {
  width: 0;
  display: none;
}
.clearfloat {
  zoom: 1;
}
.clearfloat:after {
  display: block;
  clear: both;
  content: "";
  visibility: hidden;
  height: 0;
}
.login-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
}
.login-wrapper .login-wrapper-inner {
  width: 100%;
  height: 100%;
  padding: 1.24rem 0.3rem 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.login-wrapper .logo {
  margin: auto;
  width: 3.07rem;
  height: 0.86rem;
}
.login-wrapper .logo img {
  display: block;
  width: 100%;
  height: 100%;
}
.login-wrapper .wrapper-title-text {
  margin-top: 0.22rem;
  text-align: center;
  font-size: 0.36rem;
  font-weight: 400;
  font-stretch: normal;
  line-height: 0.36rem;
  letter-spacing: 0;
  color: #000;
}
.login-wrapper .form-group-wrapper {
  margin-top: 0.6rem;
}
.login-wrapper .form-group-wrapper .group-input-item {
  margin-bottom: 0.28rem;
  width: 100%;
  height: 0.9rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 0.05rem;
  border: 1px solid #dcdcdc;
  overflow: hidden;
}
.login-wrapper .form-group-wrapper .Icon {
  position: relative;
  width: 1.02rem;
  text-align: center;
}
.login-wrapper .form-group-wrapper .Icon:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 100%;
}
.login-wrapper .form-group-wrapper .Icon:before {
  content: "";
  position: absolute;
  top: 0.1rem;
  bottom: 0.1rem;
  right: 0;
  width: 0;
  border-right: 1px solid #dcdcdc;
}
.login-wrapper .form-group-wrapper .Icon i {
  display: inline-block;
  vertical-align: middle;
}
.login-wrapper .form-group-wrapper .Icon .user-icon {
  width: 0.23rem;
  height: 0.35rem;
  background: url(../../assets/icon/tel.png) no-repeat;
  background-size: 100% 100%;
}
.login-wrapper .form-group-wrapper .Icon .pw-icon {
  width: 0.27rem;
  height: 0.33rem;
  background: url(../../assets/icon/pw.png) no-repeat;
  background-size: 100% 100%;
}
.login-wrapper .form-group-wrapper .user-input {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.login-wrapper .form-group-wrapper .user-input input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 0.3rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 0.28rem;
  color: #333;
  line-height: 1.5;
}
.login-wrapper .form-group-btn {
  padding-top: 1rem;
}
.login-wrapper .form-group-btn button {
  display: block;
  width: 100%;
  height: 0.7rem;
  font-size: 0.32rem;
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: 0;
  color: #fff;
  line-height: 0.7rem;
  background-color: #a0141a;
  border-radius: 0.05rem;
}
</style>